import { useState } from "react";

const useAdd = () => {
	const [num, setNum] = useState(0);
	const handleAdd = () => setNum(num+1);
	const handleDecrease = () => setNum(num-1);

	return { handleAdd, handleDecrease, num }
}

export default useAdd;